#!/bin/bash

# 1: running
# 0: stopped

running_or_not() {
    cso_exist=$(ps -e -o args | grep "csx/cso/bin/cso"|grep -v "grep" |wc -l)
    if [ $cso_exist -ne 0 ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
}

if [ -d "${CSX_PATH}" ]; then
    running_or_not
fi

